<?php

namespace App\Http\Models;

use Illuminate\Database\Eloquent\Model;

class MemberModel extends Model
{

	protected $connection = 'db_main';

	protected $table = 'wp_member';


	public $timestamps = false;

  	public static function is_vip($uid)
  	{
  		$member = self::where(["uid" => $uid]) -> first();

  		if($member->is_vip) {
  			return $member->is_vip;
  		}
  		return 0;
  	}
}

